<?php
	class Mlogin_ok extends CI_Model{
		public function __construct(){
			parent::__construct();
			$this->load->database();
		}
		public function login_ok($id, $pw)
		{
			$query="SELECT * from admin a WHERE a.username='$id' AND a.password='$pw'";
			$result=$this->db->query($query);
			return $result->result_array();
		}
	}
?>